Add some extensions to dat_converter.c