Add Exception, fix errors.
file mode