Added JSON saving for options file.