Formatting
Split regular and partial decoding functions for scanning