- Add a callback function for the accept event.
- Minor improvements.