What is the role of echocardiography in the assessment of endocarditis?

What is the role of echocardiography in the assessment of endocarditis?

To aid in diagnosis and management
To evaluate hemodynamic sequelae
To follow the functional course of the disease
To assess for complications
To assist in determining indications for and timing of surgery