Work on AMP code