Fixed method name errors that perl -c did not catch.