Added interface for HM encoder