Add macros for logging
Log insert/update userphrase
Refactoring Discard1