Coupon support.
Fixed some coupon bugs.