replace `MAX_LAG = 2000` to the proportion of sample size (chain length). Alexei hates the magic number. 😊 ```java final int samples = values.length; int maxLag = Math.min(samples - 1, MAX_LAG); ```