Working on redeem logic