Adding generic template