Heuristic Agent finally works!!!! Well, sort of... :)