Moved settings into an object, updated example, error if no settings.