Split template scanner in two types