Implemented msg reading in Pub.