Replaced use of deprecated method
Information hiding in protocol