Please check in the UDF forum for a solution