More logging & revert idx shifting
Better debugging and concepts around setting metadata