Added realese function for Registry