Improved reason msg with define