Initial implementation of infinite scrolling.