Really ropey prototype commit while I learn about directives