Header handling implementation, first few bits