Working with n chains synchronously