Add a class to hold a critical path.