Initial implementation of sequentialization with wait.