Fix pagination and prints