Added the average u to the extraction script.