PMCMC could be updated to: - check on valid priors before calling the particle filter likelihood approximation, and - check for invalid results from the particle filter and reject the proposed parameters.