Added threaded non block and cancellable process