Replaced "strPair" with "Message" struct as propsed by @stoewer