Add loop for hex numbers.