Change return value of fetch data function.