Added very basic pagination. Note: Breaks search functionality... kind of