Adds settings file, re-uses more code.