Modified to work with formats that write to Hbase