Refactored ReaderWriter to get injected a ConnectionHandler reference.