Moved ST to end of routine.