Mod: Updated code from whoever gave me this thing.