Better iteration over elements in agenda