Why not pull these three lines out of this method and the next one and move them to the simulationUpdate method?