Cleaning files, making state machines clear