Added functions findFIPs and checkIfCorrectSize