Some debug scripting added.