Implemented framework for case statements. Not done yet.
Fixing merge conflicts.