Script chart saving now works