Advanced case view

(also funny indentation)