Added a flexible way to save store settings