Add task decorator.