Initial version of case handling.