Export reformat function and utils