UpdateTask method added