Fixed Perl::Critic errors.