Added example 2 (free running mode)