First pass at STDIO support