Some API stuff.