extra parameters for sendMessage and callback support

- Include extra parameters for the sendMessage call.
- Include callback support