Simple brute force solution.