Add templates and mixin methods