Bugfixing and Extensions for StandardDiscount