Added support for pagination, constraining search by timestamp range. Performance inprovement in searching