Generic inertia function