Merging frontend and backend