Initial Patch to update discounting

Signed-off-by:benjamincharlton <benjicharlton@gmail.com>