https://blog.pulipuli.info/2017/10/behavior-analysis-lag-sequential.html?showComment=1559480180192#c859009151527019488