Initial API setup. UI tweaking.