FECKING BODMAS IN THE FECKING MARKOV. All looks pretty good now. Need to work out how to package this as a regression testcase against the 500 model...