Optimising message size and squashing nasty bugs