Removed ref to log function