Fixed how env vars are accessed.