Maximizing the benefit of minimally invasive surgery