Adding binary file detection and optional abort