Changed algorithm to be a LOT more optimized.