Modified the hit function to work with the updated results array. Might have to refactor it to use an object though.