Move this block into a new method.