Almost done with the pagination directive