Added optParams argument to addSubscription method