Fixed bottleneck responsible for problem in 4261964849294a52c1e6a2d0aec6f585c06b7050

Changed how messages were put in the buffer,
so that they could be taken out more easily/quickly.