FIX: Start up check for agent and set of env vars.