Corrected msg Definition to Work with Subfolders