SaveData: Moved some functions to the header