Added api functions