Modified docgen