Minor edits to getRTableWindow