Add api functionality