Added unsubscription support to maintenance script.