Added some more timeouts, fixed some issues with getting the shell type, added a readyShell() function