Another correction to read functions for packet sizes.. (I should sleep before I code..)