Sync automatically all fields to local storage.
Initialize settings based on local storage.
Added comments.