Added bgscript-mode