Implemented Write(), Read() and ReadTimeout() methods.