Initial re-write using the new Intel XDK