Add stdin support.