Moved offsetTree module from analysis into stream.