Connecting with waiting for task initialization