Added "default" to switch statement