Register task