Added the config stuff to a function, so it could be reused
if the user did not like the current config.