Another approach with a decorator.