Added pagination to sparks