Made it AMD-safe