Realize getting reader stream. Realize keepListen config. Refactoring.