Added functions for non-zero digits.