Changes settings to hash