CreateHitFunction