Quickview debug code