Changed node main script according to new config object.