Generator that kinda-sorta works. Need to redo algorithm a bit.