Partial implementation of MHST algorithm