Added multi-threaded

Added ability to do multi-threading