And how to do it right every time.