Corrected Stream API