Implemented template/node diffing