Added the ability to force file mode.