Better API for real streaming applications