Fix checking if subscription is already pinned or not.
Add missing package references to project