Adding `case` helper, fixes #233