Changed sleep in signal thread to .01 sec. Moved imports to top.