AttachStream method doesn't work in version 3