Working on template mapping