Provisory working version of API.