Add support for dynamic discounting