Run tasks synchronously