Made stream=2 option optional if compression option is also set