Modified index to pull all the appropriate details before sending response.