Reordered a few lines.