Add `S` command to set whether samples are stored