Auto template generation implemented