Added code to manipulate and format API response