Used openflow and removed embedded magic numbers.