Works on #10.

In the meantime I've made a service that this directive could hookup to.