Changed input from file to pipeline