Deleted duplicate script function.