Fixed so resampling occurs at the appropriate time in the PF.