Add missing defs of R2 and D1.