Added autoreset to particle filter.