Removing amwg code