Moved writeSettings to configuration-handler