Fix @safe pure nothrow
Add mixin tepmlate code