Added callback listener and an example