Added more debugging. Adding another console log.