Add option to write hash tables to files