Made changes ADP class to accommodate multiple agents.