Cleaned up more physics-related code.