added checkbox option to allow auto record to file.