First version of the API (rebuilding it).