Added the hit functionality