Added check for valid music file type