Using new deactivate method to detect unlock