I have no idea what this function is supposed to do, and reading the code doesn't really help...  Comment?  Clearer name?