Added first version of the API