Added optional parameter to disable node auto discovery

Added an optional argument to disable node auto discovery.