See try catch in CubicMapFunc.
See try catch in CubicMapFunc.