Re-written the code for infinite scrolling so it now works with more than 1 panel per screen.