Fixed execution time
added scanUDF