Tweaks to api_abstractions.lua