Ensure the config object is in scope
Use logger instead of puts