This is a great method. Exactly what we need here.