Updated infinite scrolling to new method