Update for pagination