Assign task variable so we can cancel if necessary