Method switch cases.