Working IPC through pipes, needs bugfixing