Add log messages to class methods to track the sequence and performance.