Add interval distance.
Add notebook to find optimal parameters.