Adds template compilation