Brute force solution.