Fixes #3: binding for directives