Config now takes the environment parameter