Add function to get the current timestep