Adding hittail code