Updated according to changes in GDJS.