Working encode and decode blocks | ScratchStats