Implemented pagination for assignment