This only supports synchronous tasks.