Allow input from stdin + add input stream type opt