Added async function to retrive data from API