Adding backend communication logic