Use Method lookup instead of switch statements