Improved lesson detection.