Added scripting for endlevel
test