Improve awk script.