Used some shell scripting magic to make sqUI.sh more reliable / dummy proof.