Working off jb's lab8.