Added template to ease coding