Moved config to env