Added onreceiveNack method and modified sendNAckToPrepare method- Vivek