The outer loop should be serialized and the inner
    loop should be executed in a certain order.