Add custom directive.