Rewrote stream callback operations