Cleaned up imports.
Removed thread.sleep() calls that were for testing.