Correcting the code to work with file BUNDLES as well