Replaced switch statement w/ array