Added fref and ability to restart without output files.