[cvs-nhc98] Added interface to hat-trail. Now, hat-trail and hat-detec