Fixed on_hit_f to include time.