Better logging to debug