Added more options for file stream