Added environment loading.