Added "mode" feature

The mode variable determines how the user received data from the
program.