Updated to use AMD wrapper