Got some results, but ruby performance sucks.