Use principal in logging and default variables