PoC with memory sampling and proper output