Merged Jef's tweaks and added Arduino output.