Fixed vars and added mkfifo