Add switch to take input from stdin
