Rewrite for SCALE.