AMD-ified version

Version that is compatible with AMD projects.