Also moved the code out of the directives module and into it's own file.
Attach a file by drag & drop or click to upload