Replaced some logs with real console logs.