Using Groovy as scripting engine