Implementing sscriptCore and added exceptions