Added fallback for missing environment config