Implemented some switch statements and stuff!