Added OUT_FILE parameter.