Work on file saving and outputs