How does an agent join?