Added AckOrNack enum to replace `bool` in message handlers.