Added hit detection