Rename addAgent handler