Implemented rigidbody saving