Changed generathing data from decorator to metaclass.