Remove repetition & document cgi-script.