Change in and out communication into BYTE format

There are a lot of problems.