Improved binary protocol