Add logging for debug