Refactors how hits are stored, extends API.