Moved save command to analysis script