Document new optional argument to notification function