Wrote paginator interface