Moved decorator into class.