Template implementation works in MD. Going back to integrate in KMC