Feature pagination

@mhahn here's my latest code.