Added input  functionality for HB format input