Added brute force logic