Updated inspect to be generated by a template, rather than hard coded.