Add automatic moment of inertia calculation.