Detect possibility to make duplicate of plates
Reorganize code so that duplicate plate detection is outside file output