Updated to reflect changes in the CSPOM API