Rebuild internal data