Got API to work