Decorator for attributes()