Added parameter dt to vary timestep in the integration.