66 Implement endscript