Some stream functions.