Improve the noc script.