Use locals() for compactness.