I reduced unused resources and unified log logic.