Added code for auditing.