Added function for physics.