setEnvironments method call has mysteriously disappeared. So, re-adding it.