Add Executor class to support synchronous execution.