Update for readTheDoc and global in params