Added Threading to the shell