Added a socket reader class.