Adapted SA algorithm to take more attributes as arguments instead of hard-coding them in the code.
Authored by: jwjoubert 2015-01-26
Parent: [r31834]
Child: [r31836]