Added open file mode