Should use symbolic constants instead of 0x7f, 0x80