Added dynamic environment configuration