Add task decorator for backwards compatibility with decorator/decorators change