modified Density Generation Algorithm. Now causes a crash in Quantum's
area of the code.