Looks like refactoring ^_^ Handling of replies was divided into several methods.