Output stream a bit dicey but seemingly functional