Support for taking input from STDIN