Changed the order in which slaveBootup and slaveStateChange are called, first bootup then change..