Finished file stuff for now, will probably change after live testing