Converted to AMD.

Also added definition file.