Fixed synchronous tasks (added returns)