Added pagination and filter functionality.