Added pagination that loads more objects when the bottom of the collection is reached.