Add pagination to directions