Initial API.
Added basic API stuff