Handling partial reload in the script