Extensions to streams (as a mixin)