Added debug message in task handler.