Added dt to the step function