Template Filtering Implementation

Change-Id: I9270136afeaadbbe16c408e6e7d2fbde5b53d324