Updated the file controller for the new version