Added code to handle decision
Send/Receive and Checkpointing code done. [Not tested]