changes made in create stream to get no of messages.