Replace hardcoded environment with variable