Consolidated unneeded functions
Some decoding functions