Experimenting with node - quick, dirty code. Do not reference!