Added compatibility checks and increased default number of iterations when sampling.