Add switch statement to Pendrago