Improve brute force strategy