Beginning API stuff.