Adding baseline assignment code.  Runs, caching the mean works.