Change Joint object to use non-pointer methods.