Added callback function, channel and slot allocation.