Implement as a decorator