I think it would better to let `lags` be an `AbstractVector{Int}`. Then you are free to select a few lags. This comment applies to all functions.