Implementing script engine