Add the ability to run the task synchronously