Fixing message structure so both systems cleanly exit; preparing for bit mapping from 2D to voxels in 3D.