Using task from delegate