Read input from stdin as well