Added parameter to open streams with write support