Added an example script to easily handles modes.