Add stdbuf to perl command
Give $structure to save_state