Revert "Mass renaming to remove the use of global variables. I need to rip out select_ws and save_ws."

This reverts commit 5bf686465ed9ff6fd7dc8790ae772d59a15321ae.