Initial work on a binary protocol