Improved order, run comment
Run comment
Updated comments
Change to return ROW_COUNT

Also add UK index to temp table,ANALYZE