Brute force comparison functioning