Add templates and statics