Dump coupon helper and add new functions. Closes #3353.