Initial (and buggy) implementation of the endless pagination scheme.