Migrate hcd from dotmatrix