Add sleep on connect of agent