Fixed issued in Protocol snippet, now works.