I wasn't really happy with the way this function turned out either. will change.