Don't hard-code 10. Use perPage.