I made an account just to say thank you for this, it works perfectly and as to the above comments, I am using the third person adventure character mode, and it seems to be working fine for me, so I am unable to help in that regard, sorry.
I hope this is added as an option in the base package...