Added filtering to select only the "real" templates, included compile on first pass