Brute force method working.