Added a method for cancelling a subscription at period end