Added template to store data to local device