Added COSP variables to physics code and drivers