Adds the Agent and some Environment changes.