Zigbee Device Configuration

I have a Zigbee device and a custom device handler. In the device handler I have the following code…

def installed() {
log.debug “Installed.”
initialise()
}

def updated() {
log.debug “Updated.”
return initialise()
}

def initialise() {
log.debug “Initialised.”
unsubscribe
log.debug “Unsubscribed”
zigbee.configureReporting(0x0006, 0x0000, 0x10, 1, 600, null)
log.debug “Reporting configured”

    zigbee.off()
    log.debug "Turned off."

    zigbee.configureReporting(0x0006, 0x0000, 0x10, 1, 600, null)

log.debug “Reporting configured”

zigbee.off()
log.debug “Turned off.”
}

My problem is that although the log messages show the execution the hub does NOT send the configureReporting command nor the off command when I update the device (change its name for example).
How can I find out what is going wrong?