Replaced PeekMessage with GetMessage