Changes to the engine controlling open files, added more behaviours