Some minor tweaks: new perl module needed, syntax issues.