Added attribute 'log' in GetDigits