Added pre, post, and complete callbacks to message handlers.