Adjusted backend to match with requests from the front.