Added extraction possibility (does not work correctly, extracts from gross instead of net)
Changed random limiting to use reservoir sampling