Brute force still too slow.