Provided better insertion trigger point (executed upon failed commits as well)