readnif and writenif now appear to function correctly