Add QNPutRet implementation and unit test.