Added the template implementation.