Added some more APIs for extensions.