Update the method for loading and playing files.