Add pagination method