Seperate the detail file generation from rlm_files.