Added API functionality - CORRECT

Corrected last commit