Added default case in switch, preventing warning