Added particle filtering functionality.
Added accessors.