Removed code that attempts to set a filename prefix and cleaned up error format