Rebuilding programs