Minor fixes required so that we can read packets