MI func now ignores templates in comments