Added original ST2 code for comparing functionality.