Add support for callbacks as an array