Fixed Perl::Critic errors