Moved env vars to the end.