Improved plugin APIs.