Added ioport functions to generator.