Adding Api functionality