Added mode
Added file mode