Text this: Using action-based hierarchies for real-time diagnosis.