Working on the main CGI program