Added support for multiple callbacks