There are some add-ons that do it for you.
Yeah?
found ithttp://forum.blockland.us/index.php?topic=279508.0