Basic API functionality addded