Added a debug log