Added default cases to switch statements to silence Eclipse warnings