Some modifications to script behavior.