Added ability for larger than 254 codes