Added API functionality

Agreed