Added default value of oflag in constructor.