Extended with ReciveMsgTimeout method.