Read input from STDIN instead of file