Fixed unsubscribe function. Should work now. (Not yet tested)