Initial decode code.