Added logic for unsubscribe.
Renamed variable Ret to Rest.