Adding support for infinite scrolling.