Added needed code to execute the ic4pn algorithm. It seems to work but I'll do more tests to be sure about it