Added support for stdin and stdout as file types.