Got basic doc type comparison working.