[FE] Logic for COCO & Pascal