Added md5 function in template system