Added ability to use robust estimators.