Added necessary code for template instantiation