Add support for LIMIT. Add automatic pagination.