Changed getSlaveMode() usage to query public variable instead