Changed audit logging functions to be more intuitive to use.