Added registering of hits