Moved all logging to debug