Adding audit function.
Enhance source code for compile warning.