Updating the template mapping