Modified doc compiler