DE776 - cleaned code.