Refactored the physics init stuff