Made some improvements to the physics.