Handle all cases in switch stements to avoid warnings