Changes to groovy script