Modify e() function to handle new files