Added codes as Groovy Scripts.