Added IP arith. code