Added UDFs in TSQL