Added very basic framework for saving and loading