Beginning to build span flag logic flow.