4D plugin implementation of the Discount 2.1.6 program written by David Loren Parsons.