Add serializable funtion to save user's configuration.