Moved agency id to a new variable.