Documentation update
Moved first pass to separate function