Uses of Template Matching