Case analysis compiling. Not tested