Finised the ugly fix, now it works over multiple data blocks
Still will fail if the clear code gets used though