Write settings (17/18)

Write settings