Make the [delay nn] shell annotation work with multiple layers