Added new_hits counter. Some cleaning.