Adding headers to binary messages