Updated script with correct file paths