Modified select_ws, I need to start removing the use of it from the code.