Updated the backend to reflect the changes in the frontend.