Logging working from state machine now.