Modified Scratch code