Add pagination functionality & Exception handler