Add a bunch of directives for compatability