Fixed issues with HDT. Finally able to record data