Added todo: handling metadata for pagination