Fixes to resizeTS logging & gapDetect rewrite