Secondary outcomes included time to recovery from acute respiratory failure , duration of weaning from mechanical ventilation , neurological testing , PICU and hospital lengths of stay , in-hospital mortality , sedation-related adverse events , measures of sedative exposure ( wakefulness , pain , and agitation ) , and occurrence of iatrogenic withdrawal .