Added ending of stream