Adjusting ioports API.  Will probably change it again.