Add timings to the modelcompiler and stop it falling through a case statement inappropriately.