Work with Template