Added support for multiple callback styles
Updated the documentation