Added initial settings saving functionality.