Implemented looping through multiple timelags
Got demo_estimate_delay.py working again after changes.