EAGLESIX-3004: Ported code; wrote text cases.

still undefined