Start laying out code for directive handling