Added basic API stuff.