Doubled the speed of box finding algorithm ;)