CHANGED: Changed "puts" to "log_debug"