Adding logging but not working.