Connection fixes, byte handling, etc.