Fixing mistakes due to lack of Perl knowledge.