Friction has been fixed (I think).

Some further debugging will have to be done.