Added helper function for reading templates