Adding code for Templates