Added migration of old settings format to hashes