Some updates to support multiple minor frames per major frames. Split the Custom decom to a separate file