Added template for basic functions