Updated to fetch properties based on the environment.