Update lead-lag.R