Passive mode operational

Changed the condition so the mode variable is read and passive could be set.