Fix #4. Persistent settings implemented.