Added threadpool and invoke from map