Cardiac rehabilitation aims to restore patients with cardiovascular disease to their optimal physical, psychological and social status. It involves exercise training and lifestyle modification to improve cardiovascular fitness and quality of life. A typical program has multiple phases from inpatient to outpatient. Exercise is prescribed based on results of stress testing and individualized to the patient's abilities and needs. The goals are to improve exercise capacity and reduce risk factors through supervised rehabilitation.