Add query flag to limit the amount of exported records