Added Deserialize, GetCommand and GetLength to msg