Added nwInterface code to work with i/o pins