Improved method for extracting parties.

Now, optionally you can extract parties by date.