Changed .wait() calls to .communicate() and added a little more output