Adding redeem logic