Implemented template update