Allow multiple simultaneous callbacks by appending a random number to callback function name