Adding a default case to remove a warning