Finally getting the directives working