Adds logging and config