instead of passing all the parameters to every function. Makes it much easier to tweak distortion model.