Changed the custom case definitin into customCase to be much more expressive.