Brute force method, timing added