Write a decorator