Completed the MsgBlock code