For/if checks to clean up the huge if/switch