Redone to use pyownet.