Modified WsFrame.cs