Added some API functionality.