Allow override of format recognition