Properly implemented switching between front- and backend.