Rewriting to use with CSSOM.