No longer using dir_mode and file_mode