Added a check to ensure working_file isn't 0 bytes