PCI finder added and almost all main functions implemented.