Work modes

The backend can work in various modes.