Added an arduino mode.