Trying to deal without unp.h