Added first cut - parity with the Nodejs examples