Added delta time as an argument in update method