Updated template extension