Added localsettings, and flag for storing games