Add support for leading zeroes to decoder