Added parameterizationFinished function to be called at the end.