Support for using a local file. Lots of renaming