Remake import and calculate code