Added argument to log fn