Introduced a new struct 'Mode' to hold client modes such as
wandering and safe drive.