Preparing your agent connection