Fixed type and added return to savefile command