JL: Small update. Still trying to get cartesian function working