Modularised file loading and saving