Added few api functions.