Update script with important calculation