Renamed log to debug to avoid unnecessary overloading