Fix documentation after removing global variable