Added unsubscribe API and protocol handlers.