Made Document classes work with Mixin classes