Ok, I think I finally got logs and sqrts and such to nest right