Updated stream example to stop streaming after 2000 records