Make pagination optional and configurable