Added basic pagination method