Properly parsing directives