Added methods to tell CTC when the mode changes.