Removed AMD compatibility; made wrapper work.
Added a test.