Use template to put data.