Passing time passed to update method