Updated for AMD style