Changed API call IDs to include more advanced memory management functions.
AMM now uses recursive locking.
Fixed re-entrancy issues in map.