Begin work for CASE-statement