Set config environment
Getting rid of global helper functions