Implemented unregister method