Altered diversity to take a qsim, sample needs to be updated, can't compile at work.