Added support for parallel execution and canceling future.